﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace C4F.DevKit.Bluetooth.ServiceAndDeviceDiscovery
{
    /// <summary>
    /// Represents the Bluetooth Socket Address.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public class BluetoothSocketAddress
    {
        /// <summary>
        /// Address family of the socket.
        /// </summary>
        public ushort AddressFamily;
        /// <summary>
        /// Address of the target Bluetooth device.
        /// </summary>
        public ulong Address;
        /// <summary>
        /// Service Class Identifier of the socket.
        /// </summary>
        public Guid ServiceClassId;
        /// <summary>
        /// RFCOMM channel associated with the socket.
        /// </summary>
        public uint Port;
    }

}
